package com.thoughtworks;

import java.util.Scanner;

/**
 * Created by bhagyas on 7/9/14.
 */
public class bookreturn extends Main {
    public static int returnedbook(book books[],String name){
        int flag = 0;

        for (int i = 0; i <=k ; i++) {
            if(name.equals(checkedoutbooks[i])){
                flag=1;
                checkedoutbooks[i]=null;
                k=k-1;
            }
        }

        return flag;
    }
}
